<template>
  <div>
    <Header/>
    <!-- 路由组件出口 -->
    <router-view></router-view>
    <!-- 在Home和Search时显示在登录和注册时隐藏 -->
    <Footer v-show="$route.meta.show "/>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  components: {
    Header,Footer
  },
  data(){
    return {
    }
  },
  computed:{
  },
  methods: {
  },
  mounted(){
    
    //通知vuex发送请求,获取二级分类数据,储存于仓库
    this.$store.dispatch("classList");
  }
}
</script>

<style>

</style>
